// Agent bob in project modules.mas2j
{export bob, sortBook/1}

{import phone="phone.aslm"}
{import library="library.aslm"}

/* Initial beliefs and rules */



/* Initial goals */



/* Plans */

// Sorting Books - bob only handles books in section b: 

+!sortBook(B[section(a)]) <- .send(alice, tell, library::needToSort(B[section(a)])).

+!sortBook(B[section(b)]) <- !library::putBookToShelf(B, alice).

+!sortBook(B[section(c)]) <- .send(alice, tell, library::needToSort(B[section(c)])).

